<%-- 
    Document   : Error
    Created on : 27 janv. 2010, 13:05:56
    Author     : JC
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
    String redirectTo;
    String errorMessage;
    String path = getServletContext().getContextPath();
    try {
        redirectTo = path + (String) getServletContext().getAttribute("redirectTo");
        errorMessage = (String) getServletContext().getAttribute("errorMessage");
    } catch (Exception e) {
        redirectTo = path + "/";
        errorMessage = "Erreur non sp&eacute;cifi&eacute;e";
    }
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="refresh" content="5; url=<%= redirectTo %>"
        <title>Erreur</title>
    </head>
    <body>
        <h1>Oups!</h1>
        <p>Une erreur est apparue :</p>
        <p>
            <%= errorMessage %>
        </p>
        <p>Redirection dans 5s. | <a href="<%= redirectTo %>">Rediriger maintenant</a></p>
    </body>
</html>
